package com.relman.control
{
	import mx.utils.ObjectUtil;
	import com.adobe.cairngorm.control.FrontController;
	import com.relman.control.*;
	import com.relman.command.*;
	
	public class RelmanController extends FrontController
	{
		public function RelmanController()
		{
			initialiseCommands();
		}
		
		public function initialiseCommands() : void
		{
			
            // login 
 			addCommand( LoginEvent.EVENT_LOGIN, LoginCommand );
 			
            // list managers
            addCommand( ListManagersEvent.EVENT_LIST_MANAGERS, ListManagersCommand );

            // list projects
     		addCommand( ListProjectsEvent.EVENT_LIST_PROJECTS, ListProjectsCommand );
			

            // list environments
            addCommand( ListEnvironmentsEvent.EVENT_LIST_ENVIRONMENTS, ListEnvironmentsCommand );
            
            // install release
            addCommand( ReleaseInstallEvent.RELEASE_INSTALL_EVENT, ReleaseInstallCommand );

            // show transaction status
            addCommand( ShowTransStatusEvent.EVENT_SHOW_TRANS_STATUS, ShowTransStatusCommand );
            
            // show transaction history
            addCommand( ShowTransHistoryEvent.EVENT_SHOW_TRANS_HISTORY, ShowTransHistoryCommand );            

		}	
	}
	
}
